package cn.bdqn.hospital.dao;

import cn.bdqn.hospital.entity.Role;

import java.sql.SQLException;

public interface RoleDao {
    /**
     * 新增科室
     * @param role
     * @return
     * @throws SQLException
     */
    public int addByRole(Role role) throws SQLException;

    /**
     * 修改科室
     * @param role
     * @return
     * @throws SQLException
     */
    public int updateByRole(Role role) throws SQLException;

    public int deleteByKsId();
}
